package withdraw

import (
	"context"

	"gitee.com/spume/common_service/app/billing/api/withdraw/v1"
	"gitee.com/spume/common_service/app/billing/internal/service"
)

func (c *ControllerV1) WithdrawApprove(ctx context.Context, req *v1.WithdrawApproveReq) (res *v1.WithdrawApproveRes, err error) {

	err = service.WithdrawDetail().Approve(ctx, req.WithdrawId, req.Approved, req.Remark)
	return
}
